<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<link type="text/css" rel="stylesheet" href="/${initParam.context_root }/css/tab_cscenter.css">
<link type="text/css" rel="stylesheet" href="/${initParam.context_root }/css/notice.css">
<h2>공지사항</h2>
<h3>글목록</h3>
<table id="content" border="1">
	<tr>
		<th width="65px">글번호</th>
		<th>제목</th>
		<!-- <th width="100px">작성자</th> -->
		<th width="100px">작성일</th>
		<th width="60px">조회수</th>
	</tr>
	<c:forEach items="${requestScope.cscenterList }" var="board">
		<tr>
			<td>${board.cscenterNo }</td>
			<td><a href="">${board.title }</a></td>
			<%-- <td>${board.nickname }</td> --%>
			<td>${board.creDate }</td>
			<td>${board.viewCnt }</td>
		</tr>
	</c:forEach>
</table>
<table>
	<tr>
		<td>
			<c:choose>
				<c:when test="${requestScope.pagingBean.previousPageGroup }">
					<a href="/${initParam.context_root }/cscenter/notice.do?page=${requestScope.pagingBean.startPageOfPageGroup - 1}">◀</a>
				</c:when>
				<c:otherwise>◀</c:otherwise>
			</c:choose>
			<c:forEach begin="${requestScope.pagingBean.startPageOfPageGroup }"
							end="${requestScope.pagingBean.endPageOfPageGroup }"
							step="1"
							var="i">
				<c:choose>
					<c:when test="${i == requestScope.pagingBean.currentPage }">
						${i }
					</c:when>
					<c:otherwise>
						<a href="/${initParam.context_root }/cscenter/notice.do?page=${i}">${i }</a>
					</c:otherwise>
				</c:choose>
			</c:forEach>
			<c:choose>
				<c:when test="${requestScope.pagingBean.previousPageGroup }">
					<a href="/${initParam.context_root }/cscenter/notice.do?page=${requestScope.pagingBean.endPageOfPageGroup +1}">▶</a>
				</c:when>
				<c:otherwise>▶</c:otherwise>
			</c:choose>
		</td>
	</tr>
</table>